package com.ftg.learn.chapter09.pattern.factory;

/**
 * 抽象类
 *
 * @author kangjx
 * @date 2023/1/17
 */
public abstract class AbstractCourse {

    private String courseName;

    private String teacherName;

    private String desc;

    /**
     * 教书
     */
    public abstract void teach();

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
